package com.skeleton.db.dto;

import com.skeleton.common.base.dto.BaseDto;

public class PageDto extends BaseDto {

	private int page;
	private int rows;
	private int start;
	private int total;

	public PageDto() {
	}

	public PageDto(int page, int rows) {
		this.page = page;
		this.rows = rows;
		this.start = (page - 1) * rows;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

}
